package com.dancun.mapper;

import com.dancun.entity.TGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-10-02
 */
@Mapper
public interface TGroupMapper extends BaseMapper<TGroup> {

    @Select("select * from t_group t where t.stno1=#{stno} or t.stno2=#{stno} or t.stno3=#{stno}")
    public List<TGroup> listByStu(String stno);

}
